(function () {
	nsbase.views.incomeIndex = new IncomeIndexFunc();

	function IncomeIndexFunc () {
		var self = this;

		self.init = _init;

		function _init () {
			initMenuBar();

			
			var listItems = [
				{name:"menu1",value:"1"},
				{name:"menu2",value:"2"},
				{name:"menu3",value:"3"},
				{name:"menu4",value:"4"},
			];
			var ddlList = new nsbase.controls.dropdownList($("#ddlMenu"));
			ddlList.selectChanged = selectChanged;
			ddlList.bindData(listItems);
			ddlList.setSelectedValue(2);
			function selectChanged () {
				alert(JSON.stringify(ddlList.getSelectedItem()));
			}
		}

		
		var cssClass = {
			selected:"selected"
		};
		function initMenuBar(){
			nsbase.views.menus.init(nsbase.config.menus.income);
			nsbase.views.menus.setCurrent("income");
		}
	}

})();